import React, { Component } from 'react'
import Item from '../Item'
import './index.css'
export default class Showbox extends Component {
  render() {
    const {requestList,isLoading,err}=this.props.params
    return (
      <div className='showbox'>
        {
          isLoading?<h1>Loading.......</h1>:
          err?<h1>{err}</h1>:
          requestList.map((val,index)=>{
            return (
              <Item userMsg={val} key={val.node_id}></Item>
            )
          })
        }
        
      </div>
    )
  }
}
